//
//  UITableView+ZoomHeaderExtension.swift
//  elarc01
//
//  Created by elarc on 16/4/13.
//  Copyright © 2016年 elarc. All rights reserved.
//

import Foundation
import UIKit
extension UITableView{
    private struct AssociatedKeys {
        static var DescriptiveName = "XXYTableHeaderView"
    }
    var zoomHeaderView:ZoomTableHeaderView?{
        get{
            return objc_getAssociatedObject(self, &AssociatedKeys.DescriptiveName) as? ZoomTableHeaderView
        }
        set{
            if let newValue = newValue{
                willChangeValueForKey("zoomHeaderView")
                objc_setAssociatedObject(self, &AssociatedKeys.DescriptiveName, newValue as ZoomTableHeaderView?, (objc_AssociationPolicy.OBJC_ASSOCIATION_ASSIGN))
                didChangeValueForKey("zoomHeaderView")
            }
        }
    }
    var showBlurImageWhenScroll:Bool?{
        get{
            return zoomHeaderView?.showBlurImageWhenScroll
        }
        set{
            zoomHeaderView?.showBlurImageWhenScroll = newValue!
        }
    }
    
}
